package com.newspublish.system.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.newspublish.system.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "新闻")
@TableName("news")
public class News {


    @TableField("id")
    private Long id;

    @TableField("title")
    private String title;

    @TableField("category")
    private String category;

    @TableField("author")
    private String author;

    @TableField("audit_state")
    private String auditState;

    @TableField("publish_state")
    private String publishState;

    @TableField("create_time")
    private String createTime;

    @TableField("star")
    private Long star;

    @TableField("view")
    private Long view;

    @TableField("publish_time")
    private Date publishTime;

    @TableField("content")
    private String content;

    @TableField("cover")
    private String cover;

}
